package com.knight.study.patterns.tujie.template;

/**
 * @Author knight
 * @Date 2024/9/5 18:58
 */

public class TemplateMain {
    public static void main(String[] args) {
        AbstractDisplay d1 = new CharDisplay('H');
        AbstractDisplay d2 = new StringDisplay("Hello,world.");
        AbstractDisplay d3 = new StringDisplay("你好，世界。");

        d1.display();
        d2.display();
        d3.display();
    }
}
